<?php

namespace App\Models;
class Subscribe extends Base
{
    public $timestamps = false;

    const TEMPLATE_COMMENT = 'Nwozu2Tc3wvVdmexHhawtUcomXboSy5q9FAszLUlLH0';
    const TEMPLATE_ARTICLE_STAR = 'e9f0IEz2lptZr5TuvW9zBcs57OkmBnlW-r04HhpZq-g';
    const TEMPLATE_CIRCLE_ARTICLE_NOTICE = 'wH5cReGbL54QQB_pDlYtLgE85Y2UK6oMetQrBPTBPZk';
    const TEMPLATE_SIGN_IN = 'oPCHZU44fJMNqrUeoTLf3BZL7nfvMmkXkpsTRCp46-E';
    const TEMPLATE_BIRTHDAY = 'iH0oDoTTGWrkrheyGxVC2vaaE3QnlTBs4GcYgGTlFao'; // 生日提醒
    const TEMPLATE_ACTIVITY_START = 'Y3RI4aVlnugSEAcTKZCnC7KJGEWXG2KCXSQaqbae-hI';
    const TEMPLATE_ACTIVITY_END = 'HsHk8TFgUExbRG62HCdKcuSiG6HENkeWBoGBSF8bk2E';
    const TEMPLATE_ACTIVITY_COUNT_DOWN = '12QqnIWwcv721z-E5mJOpWMQDMsM1H160UCFpRx0DoQ';
    const TEMPLATE_ORDER_DELIVER = 'uG20Wk8_YNwG6xHOJmQuhrKC-FSS-G9DiRn8-KPhY1o';

    const TYPE_COMMENT = 1;
    const TYPE_ARTICLE_STAR = 2;
    const TYPE_CIRCLE_ARTICLE_NOTICE = 3;
    const TYPE_SIGN_IN = 4;
    const TYPE_BIRTHDAY = 5;
    const TYPE_ACTIVITY_START = 6;
    const TYPE_ACTIVITY_END = 7;
    const TYPE_ACTIVITY_COUNT_DOWN = 8;
    const TYPE_ORDER_DELIVER = 9;

    public function user() {
        return $this->belongsTo(User::class, 'user_id');
    }

}
